// let animal = {
//     eats: true
//   };
  
//   function Rabbit(name) {
//     this.name = name;
//   }
  
//   Rabbit.prototype = animal;
  
//   let rabbit = new Rabbit("White Rabbit"); //  rabbit.__proto__ == animal
  
//   console.info( rabbit.eats ); // true


function Rabbit(name) {
    this.name = name;
  }
  
console.info(Rabbit.prototype.constructor==Rabbit);

let rabbit = new Rabbit("White Rabbit");
let rabbit2=new rabbit.constructor("Black Rabbit");
console.info(rabbit2);